$OpenBSD: patch-base_logging_c,v 1.3 2017/02/07 21:40:06 sthen Exp $
--- base/logging.c.orig	Thu Dec 22 21:40:50 2016
+++ base/logging.c	Tue Feb  7 21:24:21 2017
@@ -327,7 +327,7 @@ int write_to_log_with_host_service(char *buffer, unsig
 	strip(buffer);
 
 	/* write the buffer to the log file */
-	fprintf(fp, "[%lu] %s\n", log_time, buffer);
+	fprintf(fp, "[%lld] %s\n", (long long)log_time, buffer);
 	fflush(fp);
 
 #ifdef USE_EVENT_BROKER
@@ -719,7 +719,7 @@ int log_debug_info(int level, int verbosity, const cha
 
 	/* write the timestamp */
 	gettimeofday(&current_time, NULL);
-	fprintf(debug_file_fp, "[%lu.%06lu] [%03d.%d] [pid=%lu] ", current_time.tv_sec, current_time.tv_usec, level, verbosity, (unsigned long)getpid());
+	fprintf(debug_file_fp, "[%lld.%06lld] [%03d.%d] [pid=%lu] ", (long long)current_time.tv_sec, (long long)current_time.tv_usec, level, verbosity, (unsigned long)getpid());
 
 	/* write the data */
 	va_start(ap, fmt);
